/**@FILE:OTSRow.java
 * @AUTHOR:qingsheng.zheng
 * @DATE:2015-3-27 下午3:04:52*/
package com.fz.tool.aliyun.ots;

import java.util.ArrayList;
import java.util.List;

/*******************************************
 * @COMPANY:alibaba
 * @CLASS:OTSRow
 * @DESCRIPTION:
 * @AUTHOR:qingsheng.zheng
 * @VERSION:v1.0
 * @DATE:2015-3-27 下午3:04:52
 *******************************************/
public class OTSRow {

	public List<PrimaryValue> primaryValues = new ArrayList();
	public List<AttrValue> attrValues = new ArrayList();

	/**
	 * @description:OTSROW添加值
	 * @author:qingsheng.zheng
	 * @return:void
	 * @param o
	 */

	public void addValue(Object o) {
		if (o instanceof PrimaryValue)
			primaryValues.add((PrimaryValue) o);
		else if (o instanceof AttrValue)
			attrValues.add((AttrValue) o);
		else
			throw new RuntimeException();

	}

	public List<PrimaryValue> getPrimaryValues() {
		return primaryValues;
	}

	public void setPrimaryValues(List<PrimaryValue> primaryValues) {
		this.primaryValues = primaryValues;
	}

	public List<AttrValue> getAttrValues() {
		return attrValues;
	}

	public void setAttrValues(List<AttrValue> attrValues) {
		this.attrValues = attrValues;
	}

}
